package com.lc.spring.aop;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.lc.spring.aop.entity.User;
import com.lc.spring.aop.service.UserService;

public class Test {
	public static void main(String[] args) {
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
		UserService userService = applicationContext.getBean(UserService.class);
		User user = new User(1, "a");
		userService.add(user);
		userService.updateUser(user);

	}
}
